import React from 'react';
import {View,Text} from "@tarojs/components";
import { getCurrentInstance } from '@tarojs/taro';
import './PropsPage.scss'
class PropsPage extends React.Component {

  render() {
    // @ts-ignore
    const {prop01,prop02} = getCurrentInstance().router.params || {};
    return (
      <View className='continer'>
        <Text className='text'>1234</Text>
        <Text className='text'>prop 01 is {prop01 || 'null'}</Text>
        <Text className='text'>prop 01 is {prop02 || 'null'}</Text>
        <Text className='text'>1234</Text>
      </View>
    );
  }
}
export default PropsPage;
